Don't run network stop script when doing xend stop.
authorchris@ubuntu.eng.hq.xensource.com <chris@ubuntu.eng.hq.xensource.com>
Tue, 25 Oct 2005 02:04:30 +0000 (19:04 -0700)
committerchris@ubuntu.eng.hq.xensource.com <chris@ubuntu.eng.hq.xensource.com>
Tue, 25 Oct 2005 02:04:30 +0000 (19:04 -0700)
It doesn't make sense to undo the network configuration when stopping
xend since that would cut off all VMs from the network.  Undoing the
network setup should be an option independent of xend stop.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/server/SrvDaemon.py

index 80e2d0eb8be05409385fccdb1dc9fa6f8d1bc719..ce8b1a4e608affc03b7aa621821c597e6971fc7a 100644 (file)
@@ -262,10 +262,7 @@ class Daemon:
             return 1
 
     def stop(self):
-        result = self.cleanup_xend(True)
-        from xen.xend import Vifctl
-        Vifctl.network("stop")
-        return result
+        return self.cleanup_xend(True)
 
     def run(self, status):
         try: